home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13605 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: milo.mcs.anl.gov!usenet
  2. From: TH Fanning <fanning@ra.anl.gov>
  3. Newsgroups: comp.lang.c++,comp.graphics.avs,comp.graphics.apps.avs
  4. Subject: Writing an AVS Module in C++???
  5. Date: Tue, 26 Mar 1996 12:16:08 -0600
  6. Organization: Argonne National Laboratory
  7. Message-ID: <31583468.41C67EA6@ra.anl.gov>
  8. NNTP-Posting-Host: tackey.ra.anl.gov
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (X11; I; SunOS 4.1.3_U1 sun4m)
  13.  
  14. We have a program here, written in C++, that I need to convert
  15. to an AVS module.  As a result, I'm calling C++ code from C.
  16. I can get the module to compile OK, but I can't get it to
  17. link.  I get the following link errors:
  18.  
  19. ld: Undefined symbol
  20.    _scd_register
  21.    _scd_deregister
  22.    _ex_table_count
  23.    _ex_table_head
  24.  
  25. This is on a Sun Sparc running SunOS 4.1.3_U1, and I'm compiling
  26. with Sun's C++ compiler (CC: SC3.0.1 7/13/94).
  27.  
  28. Does anyone know where these symbols reside?  An AVS module's
  29. main() routine is in a library, so it's written and compiled
  30. in C.  Maybe that's my problem.  I'm also linking in libC.a,
  31. which *appears* to have the above symbols, but I'm not sure.
  32. (Doesn't that get linked in automatically anyway, or only if
  33. the compiler finds a main()??)
  34.  
  35. I know other people have writtin AVS modules in C++, and I've
  36. seen their code.  Mine follows the same pattern as theirs, but
  37. I can't seem to get it to work.
  38.  
  39. Any ideas would be greatly appreciated.  E-mailing replies would
  40. also be helpful.  Thanks.
  41. -- 
  42. Tom Fanning
  43. mailto:fanning@ra.anl.gov
  44.